class ChangeToCoord < ActiveRecord::Migration
  def self.up
  	add_column "positions", "last_2pawn_move_coord", :string, :limit => 2
  	remove_column "positions", "last_2pawn_move_x"
  	remove_column "positions", "last_2pawn_move_y"
  end

  def self.down
  	remove_column "positions", "last_2pawn_move_coord"
  	add_column "positions", "last_2pawn_move_x", :integer
  	add_column "positions", "last_2pawn_move_y", :integer
  end
end
